package com.example.utils;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component // 交给ioc容器管理成为一个bean
@ConfigurationProperties(prefix = "aliyun.oss") // 读取配置文件中sliyun.oss
public class AliOSSProperties1 {
    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;
}
